import { IsString, IsNotEmpty, IsObject, IsOptional, IsArray, IsNumber } from 'class-validator';

export class CreateFormConfigDto {
  @IsString()
  @IsNotEmpty()
  name: string;

  @IsArray()
  @IsNumber({}, { each: true })
  fieldTypeIds: number[];

  @IsObject()
  @IsOptional()
  fieldLabels?: Record<string, string>;
}